<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    function mySort(){
        var tags=new Array();
        for(var i=0,len=arguments.length;i<len;i++){
             tags.push(arguments[i]);
        }
        tags.sort(function(a,b){
            return a-b;
        })
        return tags;
    }
    var result=mySort(50,11,16,32,24,57,100);
    console.log(result);
</script>

</body>
</html>